package com.sea.physical.service;


import com.sea.physical.entity.CreateDespatchFreight;

import java.io.InputStream;
import java.util.List;

/**
 * 实际运费
 * @author 陈鸿飞
 */
public interface CreateDespatchFreightService {

    /**
     * 新增发运
     * @param freight
     * @return
     */
    int save(CreateDespatchFreight freight) ;
    /**
     * 根据柜号查找
     * @param createId
     * @return
     */
    List<CreateDespatchFreight> findByCreateId(Integer createId);

    /**
     * 更新运费状态
     * @param freight
     * @return
     */
    int updateFreight(CreateDespatchFreight freight);
    /**
     * 更新实际运费关税
     * @param createId
     * @return
     */
    int updateRealFreightTax(Integer createId);
    /**
     * 条件查询
     * @param createDespatchFreight
     * @return
     */
    List<CreateDespatchFreight> findByCnd(CreateDespatchFreight createDespatchFreight);
    /**
     * 查询指定
     * @param id
     * @return
     */
    CreateDespatchFreight findById(Integer id);

    /**
     * 更新
     * @param createDespatchFreight
     * @return
     */
    Integer usave(CreateDespatchFreight createDespatchFreight);

    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(Integer id);

    /**
     * 查找明细
     * @return
     */
    List<CreateDespatchFreight> findDetail();

    void pay(Integer[]payIds,String producePayTime,String produceFile);

    /**
     * 导入SKU
     * @param inputStream
     * @param fileName
     * @return
     * @throws Exception
     */
    void importDespatchFreight(InputStream inputStream, String fileName, String userRealName) throws Exception;
}
